package com.xkdx.caipiao.presistence.user;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class MainInfoSetAction extends AbsAction {
	String realname, user_nickname, cardtype, idcard, phone, id, logintoken,signcode;

	public MainInfoSetAction(String id, String logintoken, String idcard,
			String cardtype, String realname, String user_nickname,String pho,String signcode) {
		this.id = id;
		this.logintoken = logintoken;
		this.idcard = idcard;
		this.cardtype = cardtype;
		this.realname = realname;
		this.user_nickname = user_nickname;	
		this.phone = pho;
		this.signcode = signcode;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("id", id);
		map.put("logintoken", logintoken);
		map.put("idcard", idcard);
		map.put("cardtype", cardtype);
		map.put("realname", realname);
		map.put("user_nickname", user_nickname);
		map.put("phone", phone);
		map.put("signcode", signcode);
		String json = constructJson(map);
		Parameter parameter = new Parameter("User", "MainInfoSet", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
